﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jayden.Dll.Web
{
	public class CartSession
	{
		public List<CartSessionLine> Lines = new List<CartSessionLine>();
		public float ShippingCost;
		public float Total
		{
			get
			{
				float total = 0;
				foreach (CartSessionLine line in Lines)
					total += line.Price * line.Amount;
				return total;
			}
		}
	}

	public class CartSessionLine
	{
		public string Label;
		public string Reference;
		public float Price;
		public float Amount;
	}
}
